package xinxin.com.BridgePatternBasic;

import xinxin.com.BridgePatternBasic.Abstraction.Abstraction;
import xinxin.com.BridgePatternBasic.Abstraction.Detail.RefinedAbstraction;
import xinxin.com.BridgePatternBasic.Implementor.Detail.ConcreteImplementorA;
import xinxin.com.BridgePatternBasic.Implementor.Detail.ConcreteImplementorB;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/1 16:46
 */
public class BridgePatternBasic {
    public static void main(String[] args) {
        Abstraction ab = new RefinedAbstraction();

        ab.SetImplementor(new ConcreteImplementorA());
        ab.Operation();

        ab.SetImplementor(new ConcreteImplementorB());
        ab.Operation();
    }
}
